#ifndef __GLOBAL_H_INCLUDED_
#define __GLOBAL_H_INCLUDED_

#include <iostream>
#include <string>
#include <map>
#include <vector>
#include <list>
#include <stdio.h>
#include <stdlib.h>

#ifdef WIN32
	#include  <winsock2.h>    
	#define __MFUNC__ __FUNCTION__
#else 
	#include <sys/socket.h>
    #define __MFUNC__ __FUNC__
#endif 
typedef unsigned char           uint8_t;
typedef unsigned short 		   uint16_t; 
typedef unsigned int           uint32_t;
typedef int                     int32_t;

//MySQL 自定义错误码
typedef enum {
    //成功
    EMYSQLSuc = 0,
    //
    EMYSQLErrSys = -1000,           
    EMYSQLErrSysMem,               
    EMYSQLErrSysPtr,               
    //
    EMYSQLErrDBInit = -2000,       
    EMYSQLErrDBConn,               
    EMYSQLErrDBExe,                
    EMYSQLErrDBRes,                 
} EMYSQLRetcode;

typedef enum{
	EXEC_CODE_SUC = 0,
	//
	EXEC_CODE_SYS = -100,
} ExecRetCode;

using namespace std;

#endif // __GLOBAL_H_INCLUDED_
